<%-- 
    Document   : index
    Created on : 02-ene-2013, 22:31:53
    Author     : IngJarava
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11-strict.dtd"
                    xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:h="http://java.sun.com/jsf/html">

<%@ page session="true" %>

<html lang="es" xmlns="http://www.w3.org/1999/xhtml"> 

 <%
     HttpSession session_actual = request.getSession();
     String user = (String) session_actual.getAttribute("cedula");
     String text = (String) session_actual.getAttribute("text");
     
    if(session_actual.isNew())
    {
        response.sendRedirect("index.jsp");
        return;
    }
    
    if(session_actual == null)
    {
         response.sendRedirect("index.jsp");
    }else
    {
        if(user == null)
        {
                response.sendRedirect("index.jsp");
        }
    }
    session_actual.removeAttribute("cedula");
    session_actual.removeAttribute("password");
    session_actual.removeAttribute("codproelectoral");
    session_actual.removeAttribute("codmiembro");
    session_actual.removeAttribute("p_candidato");
    session_actual.removeAttribute("p_cargo");
    session_actual.removeAttribute("text");

    request.logout();
    request.getSession(false);
    request = null;
    response = null;
    session_actual.invalidate(); 
    session_actual = null;
    this.destroy();
                            
    
 %> 
  <head>
    <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
    <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"><![endif]-->
    <!--[if IE 8]>         <html class="no-js lt-ie9"><![endif]-->
    <!--[if gt IE 8]>      <html class="no-js"><![endif]-->

    <!--[if IE]>
            <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
            <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <meta http-equiv="Content-Type"    content="text/html; charset=UTF-8"/>
    <meta name="description"           content="Ciber Voto" />
    <meta name="author"                content="Ciberia Soluciones" />
    <meta name="keywords"              content="jquery, book, flip, pages, moleskine, booklet, plugin, css3 "/>
    <meta name="viewport"              content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,IE=9,chrome=1" />

    <link rel="stylesheet"              href="css/bootstrap.css" />
    <link rel="stylesheet"              href="css/bootstrap-responsive.css" />
    <link href="../favicon.ico"         rel="shortcut icon"  type="image/x-icon"/>
    <link href="css/checkbox.css"       rel="stylesheet" type="text/css"/>
    <link href="booklet/jquery.booklet.1.1.0.css"        type="text/css" rel="stylesheet" media="screen" />
    <link href="css/style.css"          rel="stylesheet" type="text/css" media="screen"/>

    <title>Sesion Fonrecar Virtual</title>
    
         <style type="text/css">

                html,
                body {
                  height: 100%;
                  background-color: #f5f5f5;
                  /* The html and body elements cannot have any padding or margin. */
                }



                /* Set the fixed height of the footer here */
                #push,
                #footer {
                  height: 60px;
                }
                #footer {
                  background-color:#D6E9C6;
                 color: #FFF;
                }

                /* Lastly, apply responsive CSS fixes as necessary */
                @media (max-width: 767px) {
                  #footer {
                    margin-left: -20px;
                    margin-right: -20px;
                    padding-left: 20px;
                    padding-right: 20px;
                  }
                }


                    /* Wrapper for page content to push down footer */
                        #wrap {
                          min-height: 92%;
                          height: auto !important;
                          height: 90%;
                          /* Negative indent footer by it's height */
                          margin: 0 auto 0;
                    }
                /* Custom page CSS
                -------------------------------------------------- */
                /* Not required for template or sticky footer method. */

                .container {
                  width: auto;
                  max-width: 100%;
                }
                .container .credit {
                  margin: 20px 0;
                }

             </style>
    
  </head>

  <body>
	
    <div id="wrap">
            <div class="container-fluid">
	       <div class="navbar-inner">
                    <div class="pull-left">
                        <img src="img/logo fonrecar.png" />
                    </div>
                    <div class="pull-Textcenter">
                      <h1>Sistema de Votacion Virtual</h1>
                    </div>
               </div>
	    </div>
	
		<br/><br/>
		
		
                   
                    <div class="pull-center">
                        <div class="form-signin">
                             <p style=" text-align: justify ">
                                 Hola 
                                    </br>
                                    <h2>
                                    <p style=" text-align: center ">
                                        <strong> 
                                            <%=user%>
                                        </strong>
                                     </p>
                                    </h2>
                                    </br>
                                <%=text%>
                             </p>
                          <p style=" text-align: center ">
                              <img src="img/icons/Error.png"></img>
                          </p>
                          <br/>
                          <div class="pull-center">
                             <p style=" text-align: center " >
                                <a href="tarjeton.jsp" class="btn btn-large btn-primary" >Volver</a>
                             </p>
                          </div>
                       </div>	
                   </div> 
		</div>
    
      
    <div id="footer">
      	<div class="container">
            <p class="muted credit" style=" text-align: center ">&copy; 
        	Copyright Ciberia Soluciones. Todos los derechos reservados.</p>
        </div>
    </div>
      
      	
  
  	<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap-button.js"></script>
  

		
       
  </body>
</html>
